#pragma once


#include "./GM/core/application/GMFramework.h"
#include "./GM/core/renderer/GMDirectx9.h"


#pragma comment( lib, "depend/GM.lib" )


class y2kMain
{
	app::GMFramework* m_framework;
	GMDirectx9* m_dx9;

	IDirect3DVertexShader9*			m_pAsmVS;
	IDirect3DVertexDeclaration9*	m_pVertexDeclaration;


public :
	y2kMain( void );
	~y2kMain( void );

	long run_message( unsigned int unMessage, WPARAM wParam, LPARAM lParam );

	void clear( void );
	bool create( HINSTANCE hInst, WNDPROC winproc );
	void initialize( void );
	void update( void );
	void render( void );

	app::GMFramework* framework( void ) const { return m_framework; }
};